<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<title>登陆</title>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="/resources/layui/css/layui.css" media="all">
<script src="/resources/layui/layui.js" charset="utf-8"></script>
</head>
<body>
	<form id="login_form" action="/xrpc-admin/login" method="post"
		class="layui-form layui-form-pane" hidden="hidden"
		style="width: 400px;margin-top: 50px;margin-left: 50px">
		<div class="layui-form-item">
			<label class="layui-form-label">用户名</label>
			<div class="layui-input-block">
				<input type="text" name="account" required lay-verify="required"
					placeholder="请输入用户名" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">密码</label>
			<div class="layui-input-block">
				<input type="password" name="password" required
					lay-verify="required" placeholder="请输入密码" autocomplete="off"
					class="layui-input">
			</div>
		</div>
		<div class="layui-form-item" hidden="hidden">
			<div class="layui-input-block">
				<button id="login-btn" class="layui-btn" lay-submit
					lay-filter="login-form-submit">登陆</button>
				<button id="reset-btn" type="reset"
					class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
</body>
<script type="text/javascript">
	layui.use([ 'layer' ], function() {
		var $ = layui.jquery;
		$(function() {
			layer.open({
				title : "登陆xRPC-Admin",
				anim : 1,
				resize : false,
				scrollbar : false,
				offset: '100px',
				area : "500px",
				type : 1,
				content : $("#login_form"),
				btn : [ '登陆' ],
				yes : function(index, layero) {
					$("#login-btn").click();
				}
			});
		})
	});
</script>
</html>
